import { createApp } from "vue";
import store from "@/stores"; //pinia
import "@/assets/styles/reset.scss"; //初始化样式
import "@/assets/styles/index.scss"; //全局样式
import "@/assets/styles/element-ui-rewrite.scss"; //重置element-ui样式
import "amfe-flexible"; //屏幕分十份，设置html字体大小
import "virtual:svg-icons-register"; //svg需要引入的样式
import ElementPlus from "element-plus"; //组件库
import "element-plus/dist/index.css"; //组件库样式
import App from "./App.vue"; //根组件
import router from "./router"; //路由
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import Viewer from "v-viewer"; //引入命令
import "viewerjs/dist/viewer.css"; //引入css样式
//全局使用
import golbalComponent from "@/components/golbalComponent"; //全局注册组件
// import ElMessage from "@/components/ElMessage";
import "./router/config"; //权限
const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn,
});
app
  .use(router)
  .use(store)
  .use(ElementPlus)
  .use(golbalComponent)
  .use(Viewer)
  .mount("#app");
